package com.losl.system.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.losl.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 通知公告表
 * </p>
 *
 * @author maxwell
 * @since 2021-06-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("sys_notice")
public class Notice extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 通知公告主键
     */
        @TableId(value = "notice_id" , type = IdType.AUTO)
    private Integer noticeId;

    /**
     * 通知公告标题
     */
    @NotEmpty
    private String noticeTitle;

    /**
     * 通知公告类型
     */
    @NotNull
    private Integer noticeType;

    /**
     * 通知公告内容
     */
    private String noticeContent;

    /**
     * 通知公告状态，0：上线，1：下线
     */
    private String status;

    /**
     * 删除标记，0：未删除，1：删除
     */
    private String idDelete;

}
